import BaseInput from "@/components/ProForm/BaseInput.vue";
import BaseCascader from '@/components/ProForm/BaseCascader.vue'
import BaseCheckBox from '@/components/ProForm/BaseCheckBox.vue'
import BaseColorPicker from '@/components/ProForm/BaseColorPicker.vue'
import BaseDatePicker from '@/components/ProForm/BaseDatePicker.vue'
import BaseDateTimePicker from '@/components/ProForm/BaseDateTimePicker.vue'
import BaseInputNumber from '@/components/ProForm/BaseInputNumber.vue'
import BaseRadio from '@/components/ProForm/BaseRadio.vue'
import BaseSelect from '@/components/ProForm/BaseSelect.vue'
import BaseSwitch from '@/components/ProForm/BaseSwitch.vue'
import BaseTimePicker from '@/components/ProForm/BaseTimePicker.vue'
import BaseTimeSelect from '@/components/ProForm/BaseTimeSelect.vue'
import BaseUpload from '@/components/ProForm/BaseUpload.vue'
import BaseDropdown from '@/components/ProForm/BaseDropdown.vue'


export const addeditConfig = {
    formProps: { // 表单属性
        labelPosition: 'right',
        labelWidth: 'auto',
        row:true,

    },
    formItems: [{
            name: BaseInput,
            props: { 
                label: '學校名稱',
                prop: 'name',
                borderBottom: true,
                span:12,
            },
            elProps: { 
                placeholder: '',
                clearable:true,
            },
            value: '' 
        },
        {
            name: BaseInput,
            props: {
                label: '地址',
                prop: 'address',
                span:12,
            },
            elProps: {
                placeholder: '',
                clearable: true,
            },
            value: ''
        },
        {
            name: BaseInput,
            props: { 
                label: '手機號碼',
                prop: 'mobile',
                borderBottom: true,
                span:12,
            },
            elProps: { 
                placeholder: '',
                clearable:true,
            },
            value: '' 
        },
        {
            name: BaseInput,
            props: { 
                label: '傳真',
                prop: 'fax',
                borderBottom: true,
                span:12,
            },
            elProps: { 
                placeholder: '',
                clearable:true,
            },
            value: '' 
        },
        {
            name: BaseInput,
            props: { 
                label: '倉庫',
                prop: 'warehouse',
                borderBottom: true,
                span:12,
            },
            elProps: { 
                placeholder: '',
                clearable:true,
            },
            value: '' 
        },
    ],
    rules: {
        name:{
            required:true,
            message:'请输入学校名称'
        }
    }
}
